//
// Created by Lenovo on 2025/7/3.
//

#ifndef CPPDEMO_CALCULATOR_H
#define CPPDEMO_CALCULATOR_H

#include "Math.h"

class Calculator {
private:
    static Calculator *instance;
    Math *p_math;

    Calculator();

    ~Calculator();

    Calculator(const Calculator &) = delete;

    Calculator &operator=(const Calculator &) = delete;

public:
    static Calculator *getCalc();

    int sum(int a, int b);

    int minus(int a, int b);
};

#endif //CPPDEMO_CALCULATOR_H
